﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BookStorage.Service
{
    public class ResultDto
    {
        /// <summary>
        /// 0正常 >0 业务逻辑错误
        /// </summary>
        public int Code { get; set; }

        /// <summary>
        /// 对应的文字消息
        /// </summary>
        public string Message { get; set; }
    }

    public class ResultDto<TResult>:ResultDto 
        where TResult : class
    {
        public TResult Data { get; set; }
    }
}
